package com.yugao.fintech.antelope.pay.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.yugao.fintech.antelope.base.model.BasePO;

import java.util.Date;

/**
 * 交易数据

 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("pm_trade_data")
public class TradeData extends BasePO {

    public static LambdaQueryWrapper<TradeData> lqw() {
        return Wrappers.lambdaQuery();
    }

    @TableId
    private String payOrderNo;

    /**
     * 商户订单号
     */
    private String mchOrderNo;

    /**
     * 交易类型, 商户自己定义
     */
    private String tradeType;

    /**
     * 商户号
     */
    protected String mchNo;

    /**
     * 商户应用ID
     */
    protected String appId;

    /**
     * 交易的内容
     */
    private String tradeContent;

    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @TableField(fill = FieldFill.UPDATE)
    private Date updatedAt;
}
